package org.ko.core.logic.auth;

import java.util.List;

import org.ko.core.domain.auth.Permission;
import org.springframework.ui.ModelMap;

public interface PermissionSvc {

	public Permission get(Long id);
	
	public Permission addDo(Permission per);
	
	public void delete(Long[] ids);
	
	public List<Permission> findAll();
	
	/**
	 * 
	 * @param model
	 * @param roleId
	 */
	public void assignToRole(ModelMap model, Long roleId);
	public void assignToRoleDo(ModelMap model, Long roleId, Long[] ids);
}